package com.dong.reward.config;



import com.dong.reward.service.SettlementMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
public class RabbitConfig {
    @Autowired
    private SettlementMessageService messageService;


    @PostConstruct
    public void startListenMassage() {
        messageService.handleMessage();
    }
}
